<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Forgot Password</title>
<link href="index.css" rel="stylesheet" type="text/css" />
</head>

<%@ include file="header.jsp"%>

<body>
	<!-- these will not be printed the first time since they are initially null and this notation does
     not print null, it just is ignored. -->
	<div class="information-text">
		<table align="center">
			<tr>
				<td style="color: red !important">${errorMessage}</td>
			</tr>
		</table>
	</div>
	
	<%if(request.getAttribute("mailSuccess")==null || request.getAttribute("mailSuccess").equals(false)){%>
	<div id="forgot-pass-form">
		<form action="ForgotPassword" method="post">
			<div id="forgotpassword-text">To reset your password, type
				the full email address you use to sign in to Qr Marks The Spot.</div>
			<table class="contact-table">
				<tr>
					<td class="contact-label">Email</td>
					<td><input class="contact-textbox" name="mail_address" value="${mail_address}"></td>
				</tr>
				<tr>
					<td></td>
					<td><input id="button-type" type="submit"></td>
				</tr>
			</table>
		</form>
	</div>
<%} else { %>
<div id="forgot-information-text">
	<table align="center">
		<tr>
			<td>${informationMessage}</td>
		</tr>
	</table>
</div>
<%} %>
</body>
<%@ include file="footer.jsp"%>